package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.SurveyItem;
import com.xinhua.repository.SurveyItemRep;

@Component
public class SurveyItemService {
	@Autowired
	private SurveyItemRep surveyItemRep;
	
	public List<SurveyItem> getSurveyItem(){
		return (List<SurveyItem>) surveyItemRep.findAll();
	}
}
